#include "StdAfx.h"
#include "test.h"
#include "DefaultContent.h"

void printContent(DefaultContent& c){
	Log<<_T("PRINT START. LineCount:")<<c.GetLineCount()<<endl;
	for(int i=0; i< c.GetLineCount(); ++i){
		Log<<c.GetLine(i)<<endl;
	}
	Log<<_T("PRINT END.")<<endl;
}
void testContent(){
	DefaultContent c;
	String text = _T("123\n45\n67\n89\n0");
	c.SetText(text);
	printContent(c);
	Log<<endl;
	Log<<_T("replace(2, 2, hello)")<<endl;
	c.ReplaceTextRange(2, 2, _T("hello"));
	printContent(c);
}